package homework33;

public class PlatoonLeader extends EventProcessing{

    public PlatoonLeader(String name) {
        super(name);
    }

    @Override
    public void hardMission(Mission mission) {
        if( mission.getEnemyNum() >= 10 && mission.getEnemyNum() < 50){
            System.out.println("排长" + name + "接到" +
                    mission.getSoldierName() + "传达的敌情:" + "敌人数量为" +
                    mission.getEnemyNum()+ ",随即下达作战命令" );
        }else {
            if (this.successor!=null){
                this.successor .hardMission(mission);
            }
        }
    }
}
